<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a><cite>当前位置</cite></a>
							<a><cite><{if $bull_type == 1}>融资<{elseif $bull_type == 2}>融券<{else}>全部<{/if}>持仓统计</cite></a>
						</span>
					</div>
					<form class="layui-form xinsu-form" action="" method="get">
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">股票类型</label>
								<div class="layui-input-inline xinsu-input-inline">
									<select name="bull_type">
										<option value="0">全部</option>
										<option value="1" <{if $bull_type == 1}>selected<{/if}>>融资</option>
										<option value="2" <{if $bull_type == 2}>selected<{/if}>>融券</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">搜索条件</label>
								<div class="layui-input-block xinsu-input-block2">
									<input type="text" name="sear" value="<{if $sear != '0'}><{urldecode($sear)}><{/if}>" class="layui-input" placeholder="股票代码 / 股票名称"/>
								</div>
							</div>
						   <button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>股票代码</th>
									<th>股票名称</th>
									<th>留仓</th>
									<th>均价</th>
									<th>现价</th>
									<th>成交金额</th>
									<th>股票类型</th>
									<th>涨幅</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.stock_code}></td>
									<td><a class="xinsu-fontcolor-blue xinsu-stock-figure" href="javascript:;" data="<{$val.stock}>"><{$val.stock_name}></a></td>
									<td><{$val.num}></td>
									<td>￥<{number_format($val.avg_price, 2)}> 元/股</td>
									<td>￥<{number_format($val.price, 2)}> 元/股</td>
									<td>￥<{number_format($val.bull_money, 2)}> 元</td>
									<{if $bull_type == 1}>
									<td class="xinsu-fontcolor-red">融资↑</td>
									<{else}>
									<td class="xinsu-fontcolor-green">融券↓</td>
									<{/if}>
									<{if $val.zf < 0}>
									<td class="xinsu-fontcolor-green"><{$val.zf}></td>
									<{else}>
									<td class="xinsu-fontcolor-red"><{$val.zf}></td>
									<{/if}>
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="7">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>
